<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>
        function fn(name,age){
            console.log(name,age);
        }
        fn()
        function f() {

        }
        // 给对象赋值默认值
        function fn1(name=0,age=0){
            console.log(name,age);
        }
    </script>
</body>
</html>